package com.qd.common.panda.domain.entity.wallet.user;

import com.cdqidi.dict.annotation.FieldBind;
import com.cdqidi.util.page.BaseQuery;
import com.cdqidi.valid.group.DefaultGroup;
import com.cdqidi.valid.group.DeleteGroup;
import com.cdqidi.valid.group.UpdateGroup;
import com.qd.common.dict.DictConstant;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;


/**
 * 退款凭证
 *
 * @author sjk
 */
@EqualsAndHashCode(callSuper = true)
@Getter
@Setter
public class UserWalletRefundApplyFileDTO extends BaseQuery {

    /**
     * 主键
     */
    @NotBlank(message = "凭证ID不能为空", groups = {DeleteGroup.class, UpdateGroup.class})
    @Size(max = 50, message = "凭证ID长度不能超过{max}位", groups = {DeleteGroup.class, UpdateGroup.class})
    private String voucherId;
    /**
     * 名称
     */
    @Size(max = 100, message = "名称长度不能超过{max}位", groups = DefaultGroup.class)
    private String picName;
    /**
     * 路径
     */
    @NotBlank(message = "路径不能为空", groups = DefaultGroup.class)
    @Size(max = 200, message = "路径长度不能超过{max}位", groups = DefaultGroup.class)
    @FieldBind(targetField = "picPathDisplay", processName = DictConstant.FILE_PATH_TRANS)
    private String picPath;
    /**
     * 路径显示
     */
    private String picPathDisplay;
    /**
     * 排序
     */
    private Integer idx;
    /**
     * 申请ID
     */
    @NotBlank(message = "申请ID不能为空", groups = DefaultGroup.class)
    @Size(max = 50, message = "申请ID长度不能超过{max}位", groups = DefaultGroup.class)
    private String requestId;
    /**
     * 附件类型
     */
    @NotBlank(message = "附件类型不能为空", groups = DefaultGroup.class)
    @Size(max = 50, message = "附件类型长度不能超过{max}位", groups = DefaultGroup.class)
    private String attachmentType;
    /**
     * 操作组织
     */
    @FieldBind(targetField = "operateOrgIdDisplay", processName = DictConstant.SYS_ORG)
    @Size(max = 50, message = "操作组织长度不能超过{max}位", groups = DefaultGroup.class)
    private String operateOrgId;
    /**
     * 操作组织显示
     */
    private String operateOrgIdDisplay;
    /**
     * 操作人
     */
    @FieldBind(targetField = "operatorDisplay", processName = DictConstant.SYS_PERSON)
    @Size(max = 50, message = "操作人长度不能超过{max}位", groups = DefaultGroup.class)
    private String operator;
    /**
     * 操作人显示
     */
    private String operatorDisplay;

    @Override
    public void freeData() {
        this.voucherId = null;
        this.picName = null;
        this.picPath = null;
        this.picPathDisplay = null;
        this.idx = null;
        this.requestId = null;
        this.attachmentType = null;
        this.operateOrgId = null;
        this.operateOrgIdDisplay = null;
        this.operator = null;
        this.operatorDisplay = null;
        super.freeData();
    }
}
